#include <stdio.h>
#include <stdlib.h>
int main()
{
	FILE *fp;
	int year,month,day;
	if((fp=fopen("D:\\myfiles\\date.txt","w+"))==NULL)
	{
		printf("File open error!\n");
		exit(0);
	}
	scanf("%d/%d/%d",&month,&day,&year);
	printf("%d.%d.%d",year,month,day);
	if(fclose(fp))
	{
		printf("Can not close the file!\n");
		exit(0);
	}
	return 0;
}
